/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2025-03-13
 * Time: 20:21
 */
public class Test {
    public static void main(String[] args) {
        Solution solution = new Solution();
        String[] board = {"XYZE","SFZS"};
        String word = "XYZZED";
        System.out.println(solution.exist(board, word));
    }
}
